/**
 * @file      stk_cors_header.h
 * @copyright Copyright (c) 2020, CYG-ZCW Co., Ltd. All Rights Reserved.
 * @brief     brief
 * @author    caiwang213@qq.com
 * @date      2020-09-02 14:55:25
 *
 * @note
 *  stk_cors_header.h defines
 */
#ifndef __STK_CORS_HEADER_H__
#define __STK_CORS_HEADER_H__

#include "stk_base.h"

namespace stk
{
class STK_API CorsHeader : public MsgField
{
public:
    CorsHeader();
    CorsHeader(const CorsHeader &src);
    CorsHeader(const char *buf);
    virtual ~CorsHeader();

public:
    CorsHeader & operator= (const CorsHeader &src);

    virtual	void 	clear();
    virtual	bool	isvalid() const;
    virtual int32_t	to_str(string &str);
    virtual int32_t	parse(const char *buf, int len);

public:
    string		    m_strValue;                /**< value for CorsHeader (size of attachments) */
};
}

#endif
